Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Sparkle / Explosions / Waltra - Articulated Series.milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=2
5[preset00]
6fRating=5.000000
7fGammaAdj=1.000
8fDecay=1.000
9fVideoEchoZoom=2.000
10fVideoEchoAlpha=0.000
11nVideoEchoOrientation=1
12nWaveMode=0
13bAdditiveWaves=0
14bWaveDots=0
15bWaveThick=0
16bModWaveAlphaByVolume=0
17bMaximizeWaveColor=1
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=0
22bDarken=0
23bSolarize=0
24bInvert=0
25fWaveAlpha=0.001
26fWaveScale=1.000
27fWaveSmoothing=0.750
28fWaveParam=0.000
29fModWaveAlphaStart=0.750
30fModWaveAlphaEnd=0.950
31fWarpAnimSpeed=1.000
32fWarpScale=1.331
33fZoomExponent=1.00000
34fShader=0.000
35zoom=0.99950
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.00900
42sx=1.00000
43sy=1.00000
44wave_r=1.000
45wave_g=1.000
46wave_b=1.000
47wave_x=0.500
48wave_y=0.500
49ob_size=0.500
50ob_r=0.010
51ob_g=0.000
52ob_b=0.000
53ob_a=0.000
54ib_size=0.260
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=12.000
60nMotionVectorsY=9.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=0.900
64mv_r=1.000
65mv_g=1.000
66mv_b=1.000
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=1.000
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=512
77wavecode_0_sep=0
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=0
80wavecode_0_bDrawThick=0
81wavecode_0_bAdditive=0
82wavecode_0_scaling=1.00000
83wavecode_0_smoothing=0.50000
84wavecode_0_r=1.000
85wavecode_0_g=1.000
86wavecode_0_b=1.000
87wavecode_0_a=1.000
88wavecode_1_enabled=0
89wavecode_1_samples=512
90wavecode_1_sep=0
91wavecode_1_bSpectrum=0
92wavecode_1_bUseDots=0
93wavecode_1_bDrawThick=0
94wavecode_1_bAdditive=0
95wavecode_1_scaling=1.00000
96wavecode_1_smoothing=0.50000
97wavecode_1_r=1.000
98wavecode_1_g=1.000
99wavecode_1_b=1.000
100wavecode_1_a=1.000
101wavecode_2_enabled=0
102wavecode_2_samples=512
103wavecode_2_sep=0
104wavecode_2_bSpectrum=0
105wavecode_2_bUseDots=0
106wavecode_2_bDrawThick=0
107wavecode_2_bAdditive=0
108wavecode_2_scaling=1.00000
109wavecode_2_smoothing=0.50000
110wavecode_2_r=1.000
111wavecode_2_g=1.000
112wavecode_2_b=1.000
113wavecode_2_a=1.000
114wavecode_3_enabled=0
115wavecode_3_samples=512
116wavecode_3_sep=0
117wavecode_3_bSpectrum=0
118wavecode_3_bUseDots=0
119wavecode_3_bDrawThick=0
120wavecode_3_bAdditive=0
121wavecode_3_scaling=1.00000
122wavecode_3_smoothing=0.50000
123wavecode_3_r=1.000
124wavecode_3_g=1.000
125wavecode_3_b=1.000
126wavecode_3_a=1.000
127shapecode_0_enabled=1
128shapecode_0_sides=32
129shapecode_0_additive=1
130shapecode_0_thickOutline=1
131shapecode_0_textured=0
132shapecode_0_num_inst=33
133shapecode_0_x=0.500
134shapecode_0_y=0.500
135shapecode_0_rad=0.10000
136shapecode_0_ang=0.00000
137shapecode_0_tex_ang=0.00000
138shapecode_0_tex_zoom=1.00000
139shapecode_0_r=0.000
140shapecode_0_g=0.500
141shapecode_0_b=0.000
142shapecode_0_a=1.000
143shapecode_0_r2=0.000
144shapecode_0_g2=0.500
145shapecode_0_b2=0.000
146shapecode_0_a2=0.000
147shapecode_0_border_r=1.000
148shapecode_0_border_g=1.000
149shapecode_0_border_b=1.000
150shapecode_0_border_a=0.000
151shape_0_per_frame1=trans = int(rand(int(q3)))/5+instance-instance;
152shape_0_per_frame2=trans2 = int(rand(int(q3)))/5+instance-instance;
153shape_0_per_frame3=trans3 = int(rand(int(q3)))/5+instance-instance;
154shape_0_per_frame4=a = trans;
155shape_0_per_frame5=
156shape_0_per_frame6=x = .5 + int(rand(25))*0.01*bass_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
157shape_0_per_frame7=y = .5 + int(rand(25))*0.01*bass_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
158shape_0_per_frame8=rad = .09 + int(rand(int(q30)))/15+instance-instance;
159shape_0_per_frame9=r=int(rand(q3))*.1+instance-instance;
160shape_0_per_frame10=g=int(rand(q3))*.1+instance-instance;
161shape_0_per_frame11=b=int(rand(q3))*.1+instance-instance;
162shape_0_per_frame12=r2=int(rand(q3))*.1+instance-instance;
163shape_0_per_frame13=g2=int(rand(q3))*.1+instance-instance;
164shape_0_per_frame14=b2=int(rand(q3))*.1+instance-instance;
165shape_0_per_frame15=border_r=int(rand(q3))*.1+instance-instance;
166shape_0_per_frame16=border_g=int(rand(q3))*.1+instance-instance;
167shape_0_per_frame17=border_b=int(rand(q3))*.1+instance-instance;
168shapecode_1_enabled=1
169shapecode_1_sides=32
170shapecode_1_additive=0
171shapecode_1_thickOutline=1
172shapecode_1_textured=1
173shapecode_1_num_inst=7
174shapecode_1_x=0.500
175shapecode_1_y=0.500
176shapecode_1_rad=0.10000
177shapecode_1_ang=0.00000
178shapecode_1_tex_ang=0.00000
179shapecode_1_tex_zoom=1.00000
180shapecode_1_r=0.000
181shapecode_1_g=0.000
182shapecode_1_b=0.500
183shapecode_1_a=1.000
184shapecode_1_r2=0.000
185shapecode_1_g2=0.000
186shapecode_1_b2=0.500
187shapecode_1_a2=0.000
188shapecode_1_border_r=1.000
189shapecode_1_border_g=1.000
190shapecode_1_border_b=1.000
191shapecode_1_border_a=0.000
192shape_1_per_frame1=trans = int(rand(int(q3)))/5+instance-instance;
193shape_1_per_frame2=trans2 = int(rand(int(q3)))/5+instance-instance;
194shape_1_per_frame3=trans3 = int(rand(int(q3)))/5+instance-instance;
195shape_1_per_frame4=a = trans;
196shape_1_per_frame5=
197shape_1_per_frame6=x = .5 + int(rand(25))*0.01*mid_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
198shape_1_per_frame7=y = .5 + int(rand(25))*0.01*mid_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
199shape_1_per_frame8=rad = .09 + int(rand(int(q30)))/15+instance-instance;
200shape_1_per_frame9=r=int(rand(q3))*.1+instance-instance;
201shape_1_per_frame10=g=int(rand(q3))*.1+instance-instance;
202shape_1_per_frame11=b=int(rand(q3))*.1+instance-instance;
203shape_1_per_frame12=r2=int(rand(q3))*.1+instance-instance;
204shape_1_per_frame13=g2=int(rand(q3))*.1+instance-instance;
205shape_1_per_frame14=b2=int(rand(q3))*.1+instance-instance;
206shape_1_per_frame15=border_r=int(rand(q3))*.1+instance-instance;
207shape_1_per_frame16=border_g=int(rand(q3))*.1+instance-instance;
208shape_1_per_frame17=border_b=int(rand(q3))*.1+instance-instance;
209shape_1_per_frame18=
210shapecode_2_enabled=1
211shapecode_2_sides=32
212shapecode_2_additive=0
213shapecode_2_thickOutline=1
214shapecode_2_textured=0
215shapecode_2_num_inst=33
216shapecode_2_x=0.500
217shapecode_2_y=0.500
218shapecode_2_rad=0.10000
219shapecode_2_ang=0.00000
220shapecode_2_tex_ang=0.00000
221shapecode_2_tex_zoom=1.00000
222shapecode_2_r=0.500
223shapecode_2_g=0.000
224shapecode_2_b=0.000
225shapecode_2_a=1.000
226shapecode_2_r2=0.500
227shapecode_2_g2=0.000
228shapecode_2_b2=0.000
229shapecode_2_a2=0.000
230shapecode_2_border_r=1.000
231shapecode_2_border_g=1.000
232shapecode_2_border_b=1.000
233shapecode_2_border_a=0.000
234shape_2_per_frame1=trans = int(rand(int(q3)))/5+instance-instance;
235shape_2_per_frame2=trans2 = int(rand(int(q3)))/5+instance-instance;
236shape_2_per_frame3=trans3 = int(rand(int(q3)))/5+instance-instance;
237shape_2_per_frame4=a = trans;
238shape_2_per_frame5=
239shape_2_per_frame6=x = .5 + int(rand(25))*0.01*treb_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
240shape_2_per_frame7=y = .5 + int(rand(25))*0.01*treb_att*if(equal(int(rand(2)),1),1,-1)+instance-instance;
241shape_2_per_frame8=rad = .09 + int(rand(int(q30)))/15+instance-instance;
242shape_2_per_frame9=r=int(rand(q3))*.1+instance-instance;
243shape_2_per_frame10=g=int(rand(q3))*.1+instance-instance;
244shape_2_per_frame11=b=int(rand(q3))*.1+instance-instance;
245shape_2_per_frame12=r2=int(rand(q3))*.1+instance-instance;
246shape_2_per_frame13=g2=int(rand(q3))*.1+instance-instance;
247shape_2_per_frame14=b2=int(rand(q3))*.1+instance-instance;
248shape_2_per_frame15=border_r=int(rand(q3))*.1+instance-instance;
249shape_2_per_frame16=border_g=int(rand(q3))*.1+instance-instance;
250shape_2_per_frame17=border_b=int(rand(q3))*.1+instance-instance;
251shape_2_per_frame18=
252shapecode_3_enabled=0
253shapecode_3_sides=4
254shapecode_3_additive=0
255shapecode_3_thickOutline=0
256shapecode_3_textured=0
257shapecode_3_num_inst=1
258shapecode_3_x=0.500
259shapecode_3_y=0.500
260shapecode_3_rad=0.10000
261shapecode_3_ang=0.00000
262shapecode_3_tex_ang=0.00000
263shapecode_3_tex_zoom=1.00000
264shapecode_3_r=1.000
265shapecode_3_g=0.000
266shapecode_3_b=0.000
267shapecode_3_a=1.000
268shapecode_3_r2=0.000
269shapecode_3_g2=1.000
270shapecode_3_b2=0.000
271shapecode_3_a2=0.000
272shapecode_3_border_r=1.000
273shapecode_3_border_g=1.000
274shapecode_3_border_b=1.000
275shapecode_3_border_a=0.100
276per_frame_init_1=x1 = 2;
277per_frame_init_2=y1= 2;
278per_frame_init_3=z1 = 2;
279per_frame_1=chng=sin(time*.5);
280per_frame_2=cthr=.9999;
281per_frame_3=mq21=if(above(chng,cthr),rand(3),mq21);
282per_frame_4=mq22=if(above(chng,cthr),rand(3),mq22);
283per_frame_5=mq23=if(above(chng,cthr),rand(3),mq23);
284per_frame_6=mq24=if(above(chng,cthr),rand(2),mq24);
285per_frame_7=mq25=if(above(chng,cthr),rand(2),mq25);
286per_frame_8=mq26=if(above(chng,cthr),rand(2),mq26);
287per_frame_9=mq27=if(above(chng,cthr),rand(1),mq27);
288per_frame_10=mq28=if(above(chng,cthr),rand(1),mq28);
289per_frame_11=mq29=if(above(chng,cthr),rand(1)*.3,mq29);
290per_frame_12=mq31=if(above(chng,cthr),rand(1)*.3,mq31);
291per_frame_13=monitor=chng;
292per_frame_14=q21=mq21;q22=mq22;q23=mq23;q24=mq24;q25=mq25;q26=mq26;
293per_frame_15=q27=mq27;q28=mq28;q29=mq29;q31=mq31;
294per_frame_16=
295per_frame_17=monitor=mq1;
296per_frame_18=// raytraced sphere code
297per_frame_19=
298per_frame_20=d = 20; // distance of the sphere, the farther you're away the more you'll see on the horizon
299per_frame_21=z = 4; // distance of the pane where the scene is projected on, wider distance = smaller apex angle of the camera, very small distances = fish eyes view
300per_frame_22=
301per_frame_23=zz = 1 + bass_att*0; // linear zoom
302per_frame_24=
303per_frame_25=pi = asin(1)*2;
304per_frame_26=pi2inv = 0.5/pi;
305per_frame_27=maskangle = asin( 1/d);
306per_frame_28=q32 = maskangle; // hit = (cameras angle < mask_angle)
307per_frame_29=q31 = d;
308per_frame_30=q30 = z;
309per_frame_31=q29 = pi2inv;
310per_frame_32=q28 = pi;
311per_frame_33=q27 = 1/zz;
312per_frame_34=
313per_frame_35=v = 0.4;
314per_frame_36=j1 = j1*0.95 + sqr(bass*4)*v;
315per_frame_37=j2 = j2*0.95 + sqr(mid*4)*v;
316per_frame_38=j3 = j3*0.95 + sqr(treb*4)*v;
317per_frame_39=
318per_frame_40=n = n + j1*0.0152;
319per_frame_41=n1 = n1 + j2*0.0152;
320per_frame_42=n2 = n2 + j3*0.0152;
321per_frame_43=
322per_frame_44=vol=(bass+mid+treb)*0.25;
323per_frame_45=vol=vol;
324per_frame_46=q3=vol*8;
325per_frame_47=mtime = mtime+vol*0.01;
326per_frame_48=q1=mtime;
327per_frame_49=
328per_frame_50=zoom = zoom + 0.015*vol;
329per_frame_51=
330per_frame_52=w1 = n*0.01; // solid angles to rotate the sphere in its origin
331per_frame_53=w2 = n1*0.01;
332per_frame_54=w3 = n2*0.01;
333per_frame_55=
334per_frame_56=q20 = cos(w1);
335per_frame_57=q21 = sin(w1);
336per_frame_58=q22 = cos(w2);
337per_frame_59=q23 = sin(w2);
338per_frame_60=q24 = cos(w3);
339per_frame_61=q25 = sin(w3);
340per_frame_62=q8=vol;
341per_frame_63=q9=vol;
342per_frame_64=q10=vol;
343per_frame_65=q11=vol;
344warp_1=`float2 polar, factorA, factorB, product;
345warp_2=`
346warp_3=`shader_body
347warp_4=`{
348warp_5=`
349warp_6=`float z = q30;
350warp_7=`float d = q31;
351warp_8=`float pi = q28;
352warp_9=`float pi2inv = q29;
353warp_10=`float mask_apex = q32;
354warp_11=`float zoom = q27;
355warp_12=`
356warp_13=`float2 c = zoom*(uv-0.5)*aspect.xy;
357warp_14=`
358warp_15=`float camera_apex = atan2( length(c),z);
359warp_16=`
360warp_17=`bool mask = mask_apex >= camera_apex;
361warp_18=`
362warp_19=`float longitude = atan2(c.x,c.y);
363warp_20=`float latitude = (pi - camera_apex + asin(d*sin(camera_apex)));
364warp_21=`
365warp_22=`float2 polar = float2(longitude,latitude);
366warp_23=`
367warp_24=`float3 p = float3( sin(polar.x)*sin(polar.y),cos(polar.x)*sin(polar.y),cos(polar.y));
368warp_25=`
369warp_26=`factorA = p.zy;
370warp_27=`factorB = float2(q20,q21);
371warp_28=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x);
372warp_29=`p.zy = product.xy;
373warp_30=`
374warp_31=`factorA = p.zx;
375warp_32=`factorB = float2(q22,q23);
376warp_33=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y,factorA.x*factorB.y + factorA.y*factorB.x);
377warp_34=`p.zx = product.xy;
378warp_35=`
379warp_36=`factorA = p.yx;
380warp_37=`factorB = float2(q24,q25);
381warp_38=`product = float2( factorA.x*factorB.x - factorA.y*factorB.y, factorA.x*factorB.y + factorA.y*factorB.x);
382warp_39=`p.yx = product.xy;
383warp_40=`polar = float2(atan2(p.z,p.x),atan2(p.y,length(p.xz)))*pi2inv*float2(1,2)+float2(0,0.5);
384warp_41=`
385warp_42=`polar = polar;
386warp_43=`
387warp_44=` float3 pos = float3(polar,time*0.15);
388warp_45=` float3 rc = tex3D(sampler_noisevol_hq, pos);
389warp_46=` rc += tex3D(sampler_noisevol_hq, 2*pos)*0.5;
390warp_47=` rc += tex3D(sampler_noisevol_hq, 4*pos)*0.25;
391warp_48=` rc += tex3D(sampler_noisevol_hq, 8*pos)*0.125;
392warp_49=` rc += tex3D(sampler_noisevol_hq, 16*pos)*0.0625;
393warp_50=` //rc = rc*0.556;
394warp_51=` rc = (rc*rc*rc)*2;
395warp_52=` //rc -= GetBlur1(uv);
396warp_53=` rc *= q3*0.5;
397warp_54=`
398warp_55=` float2 ruv = uv = 0.5 + (uv-0.5)*(1+(rc.x*.0));
399warp_56=` ret = tex2D(sampler_fc_main, float2(ruv.x, ruv.y)).xyz;
400warp_57=`
401warp_58=` float3 noise2 = tex2D(sampler_noise_lq, uv_orig*texsize.xy*texsize_noise_lq.zw+rand_frame.xy);
402warp_59=` noise2 += lerp(rc*2, 2, rad);
403warp_60=`
404warp_61=` ret = ret+0.5*lum(cross((1-ret),(noise2)))*float3(0.6,0.5,0.4);
405warp_62=` ret -= lerp(0.0,0.1,rad);
406warp_63=`
407warp_64=` ret +=0.1*tex3d(sampler_noisevol_hq, (p+time*0.1)*0.7)*mask;
408warp_65=`
409warp_66=`
410warp_67=`float4 noise9 = tex3D(sampler_noisevol_hq,
411warp_68=` ((polar.xyy*q27
412warp_69=` )*texsize.xyy*texsize_noisevol_hq.zww
413warp_70=` ).xyz*
414warp_71=` float3(1,1,0)*0.05 +
415warp_72=` time*float3(0,0,1)*q29
416warp_73=` );
417warp_74=`if(ret.x> q21*roam_cos.y && ret.x<= q24*roam_sin.x)ret.y -= (noise9).x*.5;
418warp_75=`if(ret.y> q22*roam_sin.x && ret.y<= q25*roam_cos.x)ret.z -= (noise9).y*.5;
419warp_76=`if(ret.z> q23*roam_cos.x && ret.z<= q26*roam_sin.y)ret.x -= (noise9).z*.5;
420warp_77=`}
421comp_1=`shader_body
422comp_2=`{
423comp_3=` float rad_lq = rad * length(texsize.xy)*0.5;
424comp_4=` float ang_lq = ang;
425comp_5=` float2 uv_temp1 = (uv - 0.5) * texsize.xy;
426comp_6=` float rad_hq = length(uv_temp1);
427comp_7=` float ang_hq = atan2(-uv_temp1.y, uv_temp1.x);
428comp_8=`
429comp_9=` float2 uv2 = (uv - 0.5);
430comp_10=` float rad2 = rad_lq*0.8;
431comp_11=` float ang2 = ang_lq * M_INV_PI_2;
432comp_12=`
433comp_13=` // ROTATION OVER TIME
434comp_14=` #if 1
435comp_15=` ang2 += time*0.025; //rotate over time
436comp_16=` #endif
437comp_17=`
438comp_18=` // FIN TYPE
439comp_19=` float fins = 3 + floor(rand_preset.z*5.95);
440comp_20=` #if 1 // SHARP FINS
441comp_21=` ang2 = frac(ang2*fins)/fins;
442comp_22=` // ENABLE THIS TO MAKE THE FINS ALTERNATE: (seamless!)
443comp_23=` ang2 = abs(ang2 - 0.5/fins);
444comp_24=` #else // COSINE FINS - a bit slow
445comp_25=` ang2 = cos(ang2*M_PI_2*fins) * 0.023;
446comp_26=` #endif
447comp_27=`
448comp_28=` // RADIAL KALEIDOSCOPING?
449comp_29=` #if 0
450comp_30=` rad2 *= g_fTexSize.z;
451comp_31=` // choose one:
452comp_32=` //rad2 = lerp(rad2, frac(rad2*3)/3.0, 0.5);
453comp_33=` rad2 = cos(rad2*5);
454comp_34=` //rad2 = sqrt(rad2)*0.5;
455comp_35=` //rad2 += abs(frac(rad2*7)-0.5)/7.0 * 1.15; // stepifier
456comp_36=` //rad2 += cos(rad2*61)*0.02;
457comp_37=` rad2 *= g_fTexSize.x;
458comp_38=` #endif
459comp_39=`
460comp_40=` ang2 *= M_PI_2;
461comp_41=` uv2 = 0.5 + rad2*float2(cos(ang2),sin(ang2))*texsize.zw;
462comp_42=`
463comp_43=` ret = tex2D(sampler_main, uv2).xyz;
464comp_44=` ret *= 1.333; // a little bit of overbright
465comp_45=`}